﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EventRegistrationWeb
{
    public partial class ListEvents : System.Web.UI.UserControl
    {
        public void Confegure(DateTime date, params string[] countries)
        {
            DropDownListcountries.Items.Clear();

            EventCalendar.SelectedDate = date;
            ListItem[] items=new ListItem[countries.Length];
            for (int i = 0; i < countries.Length; i++)
            {
                items[i] = new ListItem(countries[i]);
            }
            DropDownListcountries.Items.AddRange(items);
        }
        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}